package com.example.shopdemo.service;

import com.example.shopdemo.entity.HeadLine;
import com.example.shopdemo.repository.HeadLineRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2018-01-24
 **/
@Service
public class HeadLineServiceImpl {

    @Autowired
    private HeadLineRepository headLineRepository;


    public List<HeadLine> getHeadLineList(Integer enableStatus){
        return headLineRepository.findByEnableStatus(enableStatus);
    }
}
